QuickTime 3 For Windows Programmers

| Previous | Chapter Contents | Chapter Top | Next |

QTMLGetVolumeRootPath

The QTMLGetVolumeRootPath routine takes a Windows path and returns that portion of it which points to the volume root.

OSErr QTMLGetVolumeRootPath(
          char *fullPath,
          char * volumeRootPath,
          unsigned long volumeRootLen);
fullPath
Specifies the path being passed in.

volumeRootPath
Specifies where this routine writes the volume root path.

volumeRootLen
Specifies the length of the volumeRootPath buffer, so the routine knows not to write past the end of your buffer.

DISCUSSION

This routine works in the following way. If you pass in

c:\some folder\test.mov

it will return c:\

and if you pass in

\\my_server\shared_folder\mystuff\test.mov

it will return

\\my_server\shared_folder\

This is useful when you need to call Windows routines, such as GetVolumeInformation , which take a volume root path as an argument.


© 1998 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |